cmake_minimum_required(VERSION 3.10)
project(TestSameSymbol C CXX)

add_library(a SHARED a.c)
add_library(b SHARED b.c)

add_executable(main1 main.c)
target_link_libraries(main1 a b)

add_executable(main2 main.c)
target_link_libraries(main2 b a)
